<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>2-5 横向超链接组</title>
  <style>  
    a {
      text-decoration: none;
      color: black;
    }   
    .link-group {
      display: flex;
    }
    .link-group a {
      padding: 10px 20px;
      background-color: pink; 
    }
    .link-group a:hover {
      background-color: black;
      color: white; 
    }
  </style>
</head>
<body>
  <div class="link-group">
    <a href=" ">链接1</a >
    <a href="#">链接2</a >
    <a href="#">链接3</a >
    <a href="#">链接4</a >
  </div>
</body>
</html>